import { configureStore } from '@reduxjs/toolkit';
import authReducer from './slices/authSlice';
import uiReducer from './slices/uiSlice';
import patternReducer from './slices/patternSlice';
import challengeReducer from './slices/challengeSlice';
import progressReducer from './slices/progressSlice';

export const store = configureStore({
  reducer: {
    auth: authReducer,
    ui: uiReducer,
    patterns: patternReducer,
    challenges: challengeReducer,
    progress: progressReducer
  }
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch; 